#ifndef TREASUREROOM_HH
#define TREASUREROOM_HH

#include "Room.hh"
#include "Player.hh"
#include <random>
#include <ctime>

//A mysterious chest room where the player can choose whether to open 
// the chest or not. The chest must contain a bonus item, which may be a 
// weapon, armor, or potion. When enabled, items are automatically added to 
// the player's equipment or backpack based on type, and can only be opened once.

class TreasureRoom : public Room{
    private:
        bool opened = false;
        std::default_random_engine rng;

    public :
        TreasureRoom()=default;
        TreasureRoom(const TreasureRoom& other)=default;
        TreasureRoom& operator=(const TreasureRoom& other)=default;
        TreasureRoom(const std::string& name,const std::string& text);
        void enterRoom(Player& player) override; 
};

#endif
